//
//  DestTabBarModel.m
//  TravelEveryDay
//
//  Created by dlios on 15/10/15.
//  Copyright © 2015年 com.lanou3g. All rights reserved.
//

#import "DestTabBarModel.h"

@implementation DestTabBarModel
-(void)setValue:(id)value forUndefinedKey:(NSString *)key {
    if ([key isEqualToString:@"id"]) {
        self.MyId = value;
    }
}
#pragma mark - 编码
- (void)encodeWithCoder:(NSCoder *)aCoder {

    [aCoder encodeObject:self.cover_s forKey:@"cover_s"];
    [aCoder encodeObject:self.name forKey:@"name"];

    [aCoder encodeObject:self.type forKey:@"type"];
    [aCoder encodeObject:self.MyId forKey:@"myId"];
}
#pragma mark - 解码 读取
- (id)initWithCoder:(NSCoder *)aDecoder {
    if ([super init]) {
        self.cover_s = [aDecoder decodeObjectForKey:@"cover_s"];
        self.name = [aDecoder decodeObjectForKey:@"name"];
        self.type = [aDecoder decodeObjectForKey:@"type"];
        self.MyId  = [aDecoder decodeObjectForKey:@"myId"];
    }
    return self;
}
@end
